package cn.codeartist.springboot.component.rocketmq.proxy;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 消息实体封装
 *
 * @author 艾江南
 * @date 2020/8/13
 */
@Data
@NoArgsConstructor
public class MessageEntity {

    private String group;
    private String topic;
    private String tag;
    private String key;
    private Object data;
    private long timeout = 3000;

    public MessageEntity(String topic, String tag, Object data) {
        this.topic = topic;
        this.tag = tag;
        this.data = data;
    }
}
